package com.huatai.xxljob.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 *
 * @TableName xxl_job_logglue
 */
@TableName(value ="xxl_job_logglue")
@Data
public class XxlJobLogglueEntity implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 任务，主键ID
     */
	@ApiModelProperty("任务id")
    private Integer jobId;

    /**
     * GLUE类型
     */
	@ApiModelProperty("脚本类型")
    private String glueType;

    /**
     * GLUE源代码
     */
	@ApiModelProperty("脚本代码")
    private String glueSource;

    /**
     * GLUE备注
     */
	@ApiModelProperty("脚本版本备注")
    private String glueRemark;

	@ApiModelProperty("添加时间")
	@TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime addTime;

	@TableField(fill = FieldFill.INSERT_UPDATE)
	@ApiModelProperty(value = "修改时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
